//
//  FuckHttp.h
//  testPOSTJSONinOC
//
//  Created by caoyuan on 7/8/14.
//  Copyright (c) 2014 caoyuan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CYHTTP : NSObject
/**
 *  系统自带的NSURLConnection的封装，同步的请求
 *
 *  @param url      NSString url
 *  @param postData dic
 *
 *  @return dic
 */
+ (NSMutableDictionary*)post:(NSString*)url postDic:(NSMutableDictionary*)postData;
/**
 *  系统自带的NSURLConnection的封装，同步的请求
 *
 *  @param url NSString url
 *
 *  @return dic
 */
+ (NSMutableDictionary*)get:(NSString*)url;
/**
 *  系统自带的NSURLConnection的封装，同步的请求
 *
 *  @param url      NSString url
 *  @param postData dict
 *
 *  @return dic
 */
+ (NSMutableDictionary*)put:(NSString*)url postDic:(NSMutableDictionary*)postData;
@end
